# $Id: PKGBUILD 160530 2012-06-02 10:27:38Z bluewind $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-fcgi
pkgver=0.74
pkgrel=3
pkgdesc="Fast CGI"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/FCGI"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("http://www.cpan.org/CPAN/authors/id/F/FL/FLORA/FCGI-${pkgver}.tar.gz")
md5sums=('462a77a0072480fea791a4d3095eb486')

build() {
  cd  "${srcdir}/FCGI-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd  "${srcdir}/FCGI-${pkgver}"
  make test
}

package() {
  cd  "${srcdir}/FCGI-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
